package cn.itcast.hotel.service;

import cn.itcast.hotel.pojo.Hotel;
        import cn.itcast.hotel.pojo.PageResult;
        import cn.itcast.hotel.pojo.RequestParams;
import cn.itcast.hotel.pojo.UserBean;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

public interface IHotelService extends IService<Hotel> {
    PageResult queryHotel(RequestParams requestParams);

    Map<String, List<String>> filters(RequestParams requestParams);

    List<String> getSuggestion(String prefix);

    void insertById(Long id);

    void deleteById(Long id);

    /**
     * 立即预定
     * @param id
     * @return
     */
    Object findHotelById(Long id);

}
